diff options
author | Lorenz Diener <[email protected]> | 2019-04-27 21:04:06 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-27 21:04:06 +0200 |
commit | e3936649745a627fa2c31fc7b8602793b7d6027b (patch) | |
tree | c478eb7f45acbfe63faec6151a23658dfc0da3e6 /tests/cassettes/test_media_post[False].yaml | |
parent | c1418e9f3f37319d5142e0fa058e2eab434c4e5d (diff) | |
download | mastodon.py-e3936649745a627fa2c31fc7b8602793b7d6027b.tar.gz |
Test fixups and small 2.8 fixes
Pagination backwards is broken presently.
Diffstat (limited to 'tests/cassettes/test_media_post[False].yaml')
-rw-r--r-- | tests/cassettes/test_media_post[False].yaml | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml index c526e0b..3c164c6 100644 --- a/tests/cassettes/test_media_post[False].yaml +++ b/tests/cassettes/test_media_post[False].yaml | |||
@@ -1,13 +1,13 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: !!binary | | 3 | body: !!binary | |
4 | LS05MzU4YTkwZWI4NDc0NjNiYTlkOGUzMWU3Nzg5MzAwMg0KQ29udGVudC1EaXNwb3NpdGlvbjog | 4 | LS1iYjg5NDk0Mzg4NmE0ODNjODc5MDZlODFkNTI2ZDE5NA0KQ29udGVudC1EaXNwb3NpdGlvbjog |
5 | Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u | 5 | Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u |
6 | eSB3YWxrDQotLTkzNThhOTBlYjg0NzQ2M2JhOWQ4ZTMxZTc3ODkzMDAyDQpDb250ZW50LURpc3Bv | 6 | eSB3YWxrDQotLWJiODk0OTQzODg2YTQ4M2M4NzkwNmU4MWQ1MjZkMTk0DQpDb250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GVzYwAAAPwAAABe | 13 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKZGVzYwAAAPwAAABe |
@@ -943,24 +943,24 @@ interactions: | |||
943 | qYg3CP1hg5XagwuSZZej1N96VKgeHKRZSii9BM7fep2iK8u6Y69PxSpUVZtsdoSiQO3N/mozLhcI | 943 | qYg3CP1hg5XagwuSZZej1N96VKgeHKRZSii9BM7fep2iK8u6Y69PxSpUVZtsdoSiQO3N/mozLhcI |
944 | xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV | 944 | xMSN89s+KVKgU4XMHLHOFF7LVZRJrFV22pUqBoKKIKucrmmTAxMZfilSoFO2xicuMnjFStYMZkHV |
945 | 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp | 945 | 3XP4pUqC5Zbdy3MwJvu7U0AjASTLfOy9aVKgjPC5Yj9imCTIjyrGTjBn9aVKgY09xujjo55uzvSp |
946 | UqD/2Q0KLS05MzU4YTkwZWI4NDc0NjNiYTlkOGUzMWU3Nzg5MzAwMi0tDQo= | 946 | UqD/2Q0KLS1iYjg5NDk0Mzg4NmE0ODNjODc5MDZlODFkNTI2ZDE5NC0tDQo= |
947 | headers: | 947 | headers: |
948 | Accept: ['*/*'] | 948 | Accept: ['*/*'] |
949 | Accept-Encoding: ['gzip, deflate'] | 949 | Accept-Encoding: ['gzip, deflate'] |
950 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 950 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] |
951 | Connection: [keep-alive] | 951 | Connection: [keep-alive] |
952 | Content-Length: ['53738'] | 952 | Content-Length: ['53738'] |
953 | Content-Type: [multipart/form-data; boundary=9358a90eb847463ba9d8e31e77893002] | 953 | Content-Type: [multipart/form-data; boundary=bb894943886a483c87906e81d526d194] |
954 | User-Agent: [python-requests/2.18.4] | 954 | User-Agent: [python-requests/2.18.4] |
955 | method: POST | 955 | method: POST |
956 | uri: http://localhost:3000/api/v1/media | 956 | uri: http://localhost:3000/api/v1/media |
957 | response: | 957 | response: |
958 | body: {string: '{"id":"9","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/009/original/6d445db41d8f3659.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/009/small/6d445db41d8f3659.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/Znn_-Gq2xW4boSCkomw","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | 958 | body: {string: '{"id":"9","type":"image","url":"http://localhost/system/media_attachments/files/000/000/009/original/4e821b9595c45fe7.jpeg?1556389091","preview_url":"http://localhost/system/media_attachments/files/000/000/009/small/4e821b9595c45fe7.jpeg?1556389091","remote_url":null,"text_url":"http://localhost/media/OfA4eqCB8G37ISYX6DM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
959 | Lennon doing a funny walk"}'} | 959 | Lennon doing a funny walk"}'} |
960 | headers: | 960 | headers: |
961 | Cache-Control: ['max-age=0, private, must-revalidate'] | 961 | Cache-Control: ['max-age=0, private, must-revalidate'] |
962 | Content-Type: [application/json; charset=utf-8] | 962 | Content-Type: [application/json; charset=utf-8] |
963 | ETag: [W/"9070231296442cffae3de885297d79e9"] | 963 | ETag: [W/"fd6e53a1aa8b05456031f3d04424f672"] |
964 | Referrer-Policy: [strict-origin-when-cross-origin] | 964 | Referrer-Policy: [strict-origin-when-cross-origin] |
965 | Transfer-Encoding: [chunked] | 965 | Transfer-Encoding: [chunked] |
966 | Vary: ['Accept-Encoding, Origin'] | 966 | Vary: ['Accept-Encoding, Origin'] |
@@ -968,10 +968,10 @@ interactions: | |||
968 | X-Download-Options: [noopen] | 968 | X-Download-Options: [noopen] |
969 | X-Frame-Options: [SAMEORIGIN] | 969 | X-Frame-Options: [SAMEORIGIN] |
970 | X-Permitted-Cross-Domain-Policies: [none] | 970 | X-Permitted-Cross-Domain-Policies: [none] |
971 | X-Request-Id: [2c198b82-0d17-429f-9d7a-e53599d24ad7] | 971 | X-Request-Id: [79dc8d57-a19e-4d8b-a435-29cd1dcbfd42] |
972 | X-Runtime: ['0.139553'] | 972 | X-Runtime: ['0.123984'] |
973 | X-XSS-Protection: [1; mode=block] | 973 | X-XSS-Protection: [1; mode=block] |
974 | content-length: ['533'] | 974 | content-length: ['540'] |
975 | status: {code: 200, message: OK} | 975 | status: {code: 200, message: OK} |
976 | - request: | 976 | - request: |
977 | body: status=LOL+check+this+out&media_ids%5B%5D=9 | 977 | body: status=LOL+check+this+out&media_ids%5B%5D=9 |
@@ -986,16 +986,16 @@ interactions: | |||
986 | method: POST | 986 | method: POST |
987 | uri: http://localhost:3000/api/v1/statuses | 987 | uri: http://localhost:3000/api/v1/statuses |
988 | response: | 988 | response: |
989 | body: {string: '{"id":"100465738589000517","created_at":"2018-07-30T21:18:33.162Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100465738589000517","content":"\u003cp\u003eLOL | 989 | body: {string: '{"id":"101999515521299851","created_at":"2019-04-27T18:18:11.826Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost/users/mastodonpy_test/statuses/101999515521299851","content":"\u003cp\u003eLOL |
990 | check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100465738589000517","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 990 | check this out\u003c/p\u003e","url":"http://localhost/@mastodonpy_test/101999515521299851","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
991 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 991 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
992 | Lennon","locked":true,"bot":false,"created_at":"2018-07-13T23:02:25.260Z","note":"\u003cp\u003eI | 992 | Lennon","locked":true,"bot":false,"created_at":"2019-04-27T20:03:12.393Z","note":"\u003cp\u003eI |
993 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":0,"statuses_count":116,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[{"id":"9","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/009/original/6d445db41d8f3659.jpeg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/009/small/6d445db41d8f3659.jpeg","remote_url":null,"text_url":"http://localhost:3000/media/Znn_-Gq2xW4boSCkomw","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John | 993 | walk funny\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","avatar_static":"http://localhost/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","header_static":"http://localhost/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg?1556389071","followers_count":0,"following_count":0,"statuses_count":42,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[{"id":"9","type":"image","url":"http://localhost/system/media_attachments/files/000/000/009/original/4e821b9595c45fe7.jpeg?1556389091","preview_url":"http://localhost/system/media_attachments/files/000/000/009/small/4e821b9595c45fe7.jpeg?1556389091","remote_url":null,"text_url":"http://localhost/media/OfA4eqCB8G37ISYX6DM","meta":{"focus":{"x":-0.5,"y":0.3},"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John |
994 | Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'} | 994 | Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} |
995 | headers: | 995 | headers: |
996 | Cache-Control: ['max-age=0, private, must-revalidate'] | 996 | Cache-Control: ['max-age=0, private, must-revalidate'] |
997 | Content-Type: [application/json; charset=utf-8] | 997 | Content-Type: [application/json; charset=utf-8] |
998 | ETag: [W/"a46ccdacc5b0a925f6e6f3182cc17ede"] | 998 | ETag: [W/"dc46cbce50ee3193256916b8e2764163"] |
999 | Referrer-Policy: [strict-origin-when-cross-origin] | 999 | Referrer-Policy: [strict-origin-when-cross-origin] |
1000 | Transfer-Encoding: [chunked] | 1000 | Transfer-Encoding: [chunked] |
1001 | Vary: ['Accept-Encoding, Origin'] | 1001 | Vary: ['Accept-Encoding, Origin'] |
@@ -1003,10 +1003,10 @@ interactions: | |||
1003 | X-Download-Options: [noopen] | 1003 | X-Download-Options: [noopen] |
1004 | X-Frame-Options: [SAMEORIGIN] | 1004 | X-Frame-Options: [SAMEORIGIN] |
1005 | X-Permitted-Cross-Domain-Policies: [none] | 1005 | X-Permitted-Cross-Domain-Policies: [none] |
1006 | X-Request-Id: [c7d7ed56-e7ed-4be8-a905-01461604e6c7] | 1006 | X-Request-Id: [6cab77d0-ed19-4bbb-b1ae-6ee00ea08221] |
1007 | X-Runtime: ['0.230335'] | 1007 | X-Runtime: ['0.166404'] |
1008 | X-XSS-Protection: [1; mode=block] | 1008 | X-XSS-Protection: [1; mode=block] |
1009 | content-length: ['2056'] | 1009 | content-length: ['2151'] |
1010 | status: {code: 200, message: OK} | 1010 | status: {code: 200, message: OK} |
1011 | - request: | 1011 | - request: |
1012 | body: null | 1012 | body: null |
@@ -1018,13 +1018,13 @@ interactions: | |||
1018 | Content-Length: ['0'] | 1018 | Content-Length: ['0'] |
1019 | User-Agent: [python-requests/2.18.4] | 1019 | User-Agent: [python-requests/2.18.4] |
1020 | method: DELETE | 1020 | method: DELETE |
1021 | uri: http://localhost:3000/api/v1/statuses/100465738589000517 | 1021 | uri: http://localhost:3000/api/v1/statuses/101999515521299851 |
1022 | response: | 1022 | response: |
1023 | body: {string: '{}'} | 1023 | body: {string: '{}'} |
1024 | headers: | 1024 | headers: |
1025 | Cache-Control: ['max-age=0, private, must-revalidate'] | 1025 | Cache-Control: ['max-age=0, private, must-revalidate'] |
1026 | Content-Type: [application/json; charset=utf-8] | 1026 | Content-Type: [application/json; charset=utf-8] |
1027 | ETag: [W/"dd8d0a4afede5f7118e71076dbb426d4"] | 1027 | ETag: [W/"71fb4d7e1e48f649eba00c8cd0090849"] |
1028 | Referrer-Policy: [strict-origin-when-cross-origin] | 1028 | Referrer-Policy: [strict-origin-when-cross-origin] |
1029 | Transfer-Encoding: [chunked] | 1029 | Transfer-Encoding: [chunked] |
1030 | Vary: ['Accept-Encoding, Origin'] | 1030 | Vary: ['Accept-Encoding, Origin'] |
@@ -1032,8 +1032,8 @@ interactions: | |||
1032 | X-Download-Options: [noopen] | 1032 | X-Download-Options: [noopen] |
1033 | X-Frame-Options: [SAMEORIGIN] | 1033 | X-Frame-Options: [SAMEORIGIN] |
1034 | X-Permitted-Cross-Domain-Policies: [none] | 1034 | X-Permitted-Cross-Domain-Policies: [none] |
1035 | X-Request-Id: [3e233abd-a9f0-44af-b74b-8d50faaefa88] | 1035 | X-Request-Id: [4e394051-b9fc-400f-9ed2-8559a747d599] |
1036 | X-Runtime: ['0.070429'] | 1036 | X-Runtime: ['0.049374'] |
1037 | X-XSS-Protection: [1; mode=block] | 1037 | X-XSS-Protection: [1; mode=block] |
1038 | content-length: ['2'] | 1038 | content-length: ['2'] |
1039 | status: {code: 200, message: OK} | 1039 | status: {code: 200, message: OK} |